<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template member/header}

	<input type="hidden" id="hdErrMsg" />
	<div class="main-head">
		<span>用户中心 &gt; 短信公告 &gt; 站内短信</span>
	</div>
	<div class="con_box">
        <div class="btn-box clear" style="overflow:hidden;">
            <span class="tabs-con">
                <a href="javascript:;" class="dib btn " name="receive">收件箱</a>
                <a href="javascript:;" class="dib mbactive" name="outbox">发件箱</a>
            </span>
        </div>
        <div id="receive_box">
            <div class="table-list">
                <table>
                    <thead>
                        <tr>
                            <th class="aleft pfr-15px">收件短信列表</th>
                        </tr>
                        <tr>
                            <th style="background-color:#f5f5f5;">
                                <div class="tl"><a href="javascript:;" class="btn" data-bind="click:$root.deleteInt">删除</a></div>
                            </th>
                        </tr>
                        <tr>
                            <th class="ui-sec-th-bg-box">
                                <div class="ui-sec-tit-box pfr-20px">
                                    <label class="dib fl ui-item-1 mr20px"><input type="checkbox" class="fl" id="all_select" /><span class="fl">全选</span></label>
                                    
                                    <label class="dib fl ui-item-2 tl mr20px">发件人</label>
                                    <label class="dib fl ui-item-3">标题</label>
                                    <label class="dib fright ui-item-5"></label>
                                    <label class="dib fright ui-item-4">日期</label>
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody id="have_inbox_data" data-bind="foreach:listData">
                        <tr>
                            <td>
                                <div data-notice="inbox" class="aleft pfr-15px h26px" data-bind="style:{fontWeight:status?'':'bold'}">
                                    <label class="dib fl ui-item-1 mr20px"><input type="checkbox" name="select_inbox" value="" /></label>                                    
                                    <input type="hidden" data-bind="textinput:id" />
                                    <label class="dib fl ui-item-2 mr20px"><span data-bind="text:username"></span></label>
                                    <label class="dib fl ui-item-3" data-bind="text:title"></label>
                                    <label class="dib fright ui-item-4">【<span data-bind="text:dateline"></span>】</label>
                                    <span class="dib" style="clear:both;"></span>
                                </div>
                                <div class="aleft dn" style="padding:30px;line-height:20px;" data-bind="html:content"></div>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="no_inbox_data" class="dn">
                        <tr>
                            <td colspan="2" class="aleft pfr-15px">暂无信息</td>
                        </tr>
                    </tbody>
                </table>
                <div data-bind="page:currentPage" class="page bottom-page dn" id="inbox_page"></div>
            </div>
        </div>
        <div class="con_box dn" id="outbox_box">
            <div class="form-box pr">
                <span><a href="javascript:;" class="btn" id="send_station_msg">发送站内信息</a></span>
                <!-- 站内短信弹窗 begin -->
                <div class="pa ui-message-box dn" id="station_msg">
                    <div class="">
                        <div class="control-group w100">
                            <a href="javascript:;" class="dib tc fright ui-parant-close-box" id="close_btn">×</a>
                        </div>
                        <div class="control-group">
                            <label class="control-label ui-msg-label-box">接收人：</label>
                            <div class="ui-msg-controls-box fl">
                                <div>
                                    <label for="up_grade">
                                        <input type="radio" value="up" name="js" id="up_grade" checked>&nbsp;上级
                                    </label>
                                    <label class="down_grade pr" style="width:110px;">
                                        <input type="radio" value="down" name="js" id="down_grade">&nbsp;下级
                                        <!--<select rows="1" data-con="one" class="dn w100" id="down_ta" style="left:0;top:25px;" data-con="one" multiple="multiple"></select>-->
                                        <div class="ui-msg-down-ul-box pa dn" id="send_msg_box">
                                            <div class="pa ui-msg-h55px">
                                                <div class="ui-msg-w278px" style="overflow:hidden;">
                                                    <label class="dib ui-close-box fright" oid="close">×</label>
                                                </div>
                                                <div class="plr10px ui-iit-box">
                                                    <input type="text" placeholder="请输入关键字搜索" maxlength="20" id="keyword" />&nbsp;&nbsp;
                                                    <a href="javascript:;" class="btn" id="seach_btn">搜索</a>
                                                    <label>
                                                        <input type="checkbox" value="" id="selectAll" />
                                                        全选
                                                    </label>
                                                </div>
                                            </div>
                                            <div class="pa ui-wewe-box" id="scroll_box">
                                                <ul data-con="one" class="w100" id="down_ta"></ul>
                                            </div>
                                            <div class="pa plr10px tc ui-klkl-box">
                                                <!--<a href="javascript:;" class="btn">确定</a>&nbsp;&nbsp;-->
                                                <a href="javascript:;" class="btn" oid="close">关闭</a>
                                            </div>
                                        </div>
                                        <div class="pa dn ui-msg-line-box" id="lineBox"></div>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label ui-msg-label-box">标题：</label>
                            <div class="ui-msg-controls-box fl">
                                <textarea rows="1" data-con="two"></textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label ui-msg-label-box">内容：</label>
                            <div class="ui-msg-controls-box fl">
                                <textarea rows="5" data-con="three"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="tc">
                        <a href="javascript:;" class="btn" id="send_msg" data-bind="click:sendMessage">发送消息</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="javascript:;" class="btn" id="cz_msg">重置修改</a>
                    </div>
                </div>
                <!-- 站内短信弹窗 end -->
            </div>
            <div class="table-list">
                <table>
                    <thead>
                        <tr>
                            <th class="aleft pfr-15px">发送短信列表</th>
                        </tr>
                        <tr>
                            <th style="background-color:#f5f5f5;">
                                <div class="tl"><a href="javascript:;" class="btn" data-bind="click:$root.deleteOut">删除</a></div>
                            </th>
                        </tr>
                        <tr>
                            <th class="ui-sec-th-bg-box">
                                <div class="ui-sec-tit-box pfr-20px">
                                    <label class="dib fl ui-item-1 mr20px"><input type="checkbox" class="fl" id="all_sec_select" /><span class="fl">全选</span></label>
                                    
                                    <label class="dib fl ui-item-2 tl mr20px">收件人</label>
                                    <label class="dib fl ui-item-3">标题</label>
                                    <label class="dib fright ui-item-5"></label>
                                    <label class="dib fright ui-item-4">日期</label>
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody id="have_data" data-bind="foreach:list">
                        <tr>
                            <td>
                                <div data-notice="outbox" class="aleft pfr-15px h26px">
                                    <label class="dib fl ui-item-1 mr20px"><input type="checkbox" name="select_sec_inbox" value="" /></label>
                                    
                                    <input type="hidden" data-bind="textinput:id" />
                                    
                                    <label class="dib fl ui-item-2 mr20px" data-bind="text:tid"></label>
                                    <label class="dib fl ui-item-3" data-bind="text:title"></label>
                                    <label class="dib fright ui-item-4">【<span data-bind="text:dateline"></span>】</label>
                                    <span class="dib" style="clear:both;"></span>
                                </div>
                                <div class="aleft dn" style="padding:30px;line-height:20px;">
                                    <div style="font-weight:bold;">内容：</div>
                                    <div style="text-indent:24px;"><span data-bind="text:content"></span></div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="no_data" class="dn">
                        <tr>
                            <td colspan="2" class="aleft pfr-15px">暂无信息</td>
                        </tr>
                    </tbody>
                </table>
                <div data-bind="page:currentPage" class="page bottom-page dn" id="outbox_page"></div>
            </div>
        </div>
    </div>
	<script type="text/javascript" src="static/js/iscroll.js"></script>
	<script type="text/javascript" src="static/js/User.message.js"></script>
	
    <div id="SEARCH-TIP" style="display:none;">
        <div class="mask"></div>
        <div class="popup tips-popup">
            <div class="popup-head">
                <span>提示</span>
            </div>
            <div class="popup-body">
                <p>查询中,请您耐心等待.....</p>
            </div>
        </div>
    </div>

{template member/footer}